﻿using Microsoft.Extensions.Hosting;

namespace HangfireTest.Service
{
    public class SecondStartService : IHostedService
    {
        public async Task StartAsync(CancellationToken cancellationToken)
        {
            await Task.Run(() => { Console.WriteLine("SecondStartService......StartAsync"); }, cancellationToken);
        }

        public async Task StopAsync(CancellationToken cancellationToken)
        {
            await Task.Run(() => { Console.WriteLine("SecondStartService......StopAsync"); }, cancellationToken);
        }
    }
}
